.class public Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;
.super Landroid/widget/FrameLayout;
.source "GifConvertView.java"

# interfaces
.implements Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar$b;
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;
    }
.end annotation


# instance fields
.field private a:J

.field private b:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;

.field private c:Z

.field private d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

.field private e:Landroid/view/View;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Z

.field private j:I

.field public k:Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p2, 0x1

    .line 4
    iput-boolean p2, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->c:Z

    .line 5
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->a(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;)Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    return-object p0
.end method

.method private a(Landroid/content/Context;)V
    .locals 1

    .line 3
    sget v0, Les/y4;->durec_gif_convert_view:I

    invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 4
    sget p1, Les/x4;->gif_range_seek_bar_container:I

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->b:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;

    .line 5
    new-instance v0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$a;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;)V

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;->setRangeSeekBarContainerListener(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer$e;)V

    .line 6
    sget p1, Les/x4;->gif_convert_range_seek_bar:I

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    const/4 v0, 0x1

    .line 7
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->setMaskMode(I)V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {p1, p0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar$b;)V

    .line 9
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    new-instance v0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$b;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;)V

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->setInteraction(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar$a;)V

    .line 10
    sget p1, Les/x4;->gif_convert_seekbar_infobar:I

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->e:Landroid/view/View;

    .line 11
    sget p1, Les/x4;->rangebar_container_centertext:I

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->f:Landroid/widget/TextView;

    .line 12
    sget p1, Les/x4;->gif_convert_preview_btn:I

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->g:Landroid/widget/TextView;

    .line 13
    invoke-virtual {p1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 14
    sget p1, Les/x4;->gif_convert_btn:I

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->h:Landroid/widget/TextView;

    .line 15
    invoke-virtual {p1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private a(Z)V
    .locals 0

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;Z)Z
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->i:Z

    return p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;)I
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->getMaxConvertLength()I

    move-result p0

    return p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->e()V

    return-void
.end method

.method private d()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getRightCursorValue()I

    move-result v0

    div-int/lit8 v0, v0, 0x64

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorValue()I

    move-result v1

    div-int/lit8 v1, v1, 0x64

    sub-int/2addr v0, v1

    const/16 v1, 0xc8

    if-gt v0, v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private e()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->c:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->c:Z

    .line 3
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object v0

    invoke-virtual {v0}, Les/s6;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->f()V

    :cond_0
    return-void
.end method

.method private f()V
    .locals 4

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/picture/ui/c;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/esfile/screen/recorder/picture/ui/c;-><init>(Landroid/content/Context;)V

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    invoke-direct {v1}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;-><init>()V

    .line 3
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v2

    sget v3, Les/z4;->durec_precise_cut_tip:I

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    const/16 v2, 0x50

    .line 4
    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(I)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->b:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;

    sget v3, Les/x4;->rangebar_container_lefttext:I

    .line 5
    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    .line 6
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a()Lcom/esfile/screen/recorder/picture/ui/c$a;

    move-result-object v1

    .line 7
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/ui/c;->a(Lcom/esfile/screen/recorder/picture/ui/c$a;)V

    .line 8
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/c;->b()V

    return-void
.end method

.method private g()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->h:Landroid/widget/TextView;

    sget v1, Les/w4;->durec_common_ok_btn_selector_reverse:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->h:Landroid/widget/TextView;

    .line 4
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/u4;->durec_common_ok_btn_text_color_reverse:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v1

    .line 5
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->f:Landroid/widget/TextView;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/u4;->durec_share_item_app_label_color:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    .line 7
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->h:Landroid/widget/TextView;

    sget v1, Les/w4;->durec_common_ok_btn_disable:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->h:Landroid/widget/TextView;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/u4;->durec_disable_text_color:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->f:Landroid/widget/TextView;

    const v1, -0x11d5d9

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_0
    return-void
.end method

.method private getMax()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getMax()I

    move-result v0

    return v0
.end method

.method private getMaxConvertLength()I
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->j:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->getMax()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    return v0
.end method

.method private setMaxConvertLength(I)V
    .locals 5

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->j:I

    .line 2
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->a:J

    int-to-long v2, p1

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a(II)V

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {p1}, Landroid/view/View;->postInvalidate()V

    .line 5
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object p1

    invoke-virtual {p1}, Les/s6;->h()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 6
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->c()V

    :cond_0
    return-void
.end method


# virtual methods
.method public a(Landroid/graphics/Bitmap;)V
    .locals 1

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a(Landroid/graphics/Bitmap;)V

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;JZ)V
    .locals 0

    if-eqz p4, :cond_3

    .line 18
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->k:Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;

    if-eqz p1, :cond_0

    long-to-int p3, p2

    .line 19
    invoke-interface {p1, p3}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;->a(I)V

    .line 20
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorValue()I

    move-result p1

    if-nez p1, :cond_2

    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    .line 21
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getRightCursorValue()I

    move-result p1

    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->getMaxConvertLength()I

    move-result p2

    if-eq p1, p2, :cond_1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    goto :goto_1

    :cond_2
    :goto_0
    const/4 p1, 0x1

    :goto_1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->i:Z

    .line 22
    :cond_3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->g()V

    return-void
.end method

.method public a()Z
    .locals 1

    .line 17
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->i:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public b()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->a()V

    return-void
.end method

.method public b(Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;JZ)V
    .locals 0

    if-eqz p4, :cond_3

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->k:Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;

    if-eqz p1, :cond_0

    long-to-int p3, p2

    .line 4
    invoke-interface {p1, p3}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;->a(I)V

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorValue()I

    move-result p1

    if-nez p1, :cond_2

    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    .line 6
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getRightCursorValue()I

    move-result p1

    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->getMaxConvertLength()I

    move-result p2

    if-eq p1, p2, :cond_1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    goto :goto_1

    :cond_2
    :goto_0
    const/4 p1, 0x1

    :goto_1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->i:Z

    .line 7
    :cond_3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->g()V

    return-void
.end method

.method public c()V
    .locals 5

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-static {v0}, Lcom/esfile/screen/recorder/utils/k;->b(Landroid/view/View;)Landroid/graphics/Point;

    move-result-object v0

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorX()I

    move-result v1

    iput v1, v0, Landroid/graphics/Point;->x:I

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/picture/ui/c;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/esfile/screen/recorder/picture/ui/c;-><init>(Landroid/content/Context;)V

    .line 5
    new-instance v2, Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    invoke-direct {v2}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;-><init>()V

    .line 6
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v3

    sget v4, Les/z4;->durec_gif_limit_lenght:I

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    const/16 v3, 0x50

    .line 7
    invoke-virtual {v2, v3}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(I)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    .line 8
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(Landroid/graphics/Point;)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    .line 9
    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    .line 10
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a()Lcom/esfile/screen/recorder/picture/ui/c$a;

    move-result-object v0

    .line 11
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/picture/ui/c;->a(Lcom/esfile/screen/recorder/picture/ui/c$a;)V

    .line 12
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/picture/ui/c;->b()V

    return-void
.end method

.method public getRange()Landroid/util/Pair;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getLeftCursorValue()I

    move-result v0

    int-to-long v0, v0

    .line 2
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->getRightCursorValue()I

    move-result v2

    int-to-long v2, v2

    .line 3
    new-instance v4, Landroid/util/Pair;

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-direct {v4, v0, v1}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    return-object v4
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    .line 2
    sget v0, Les/x4;->gif_convert_btn:I

    if-ne p1, v0, :cond_2

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->k:Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;

    if-eqz p1, :cond_0

    .line 5
    invoke-interface {p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;->b()V

    :cond_0
    const/4 p1, 0x1

    .line 6
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->a(Z)V

    goto :goto_0

    .line 7
    :cond_1
    sget p1, Les/z4;->durec_gif_lenght_exceed:I

    invoke-static {p1}, Les/ec;->b(I)V

    const/4 p1, 0x0

    .line 8
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->a(Z)V

    goto :goto_0

    .line 9
    :cond_2
    sget v0, Les/x4;->gif_convert_preview_btn:I

    if-ne p1, v0, :cond_3

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->k:Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;

    if-eqz p1, :cond_3

    .line 11
    invoke-interface {p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;->a()V

    :cond_3
    :goto_0
    return-void
.end method

.method public setGifConvertOperation(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->k:Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView$c;

    return-void
.end method

.method public setMax(I)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->d:Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBar;->setMax(I)V

    return-void
.end method

.method public setPreviewBtnEnabled(Z)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->g:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setEnabled(Z)V

    return-void
.end method

.method public setVideoInfo(J)V
    .locals 0

    .line 1
    iput-wide p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->a:J

    const/16 p1, 0x4e20

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertView;->setMaxConvertLength(I)V

    return-void
.end method
